<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        console.log("终端输入log信息");
        document.write("<h2>文本输入</h2>");
        alert("弹出弹框把握今天")
        prompt("请输入内容");
    </script>
</body>

</html>